package yt.kpool.adapter;

import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

import com.king.base.adapter.ViewHolderRecyclerAdapter;
import com.king.base.adapter.holder.ViewHolder;

import java.util.List;

import yt.kpool.R;
import yt.kpool.activity.salesman.AgentDetailsActivity;
import yt.kpool.bean.LoginLogBean;
import yt.kpool.bean.MyAgentBean;
import yt.kpool.util.Util;


/**
 * 登录日志列表
 */
public class LoginLogAdapter extends ViewHolderRecyclerAdapter<LoginLogBean.DataBean> {
    private Context context;
    public LoginLogAdapter(Context context, List<LoginLogBean.DataBean> data) {
        super(context, data);

        this.context=context;

    }
    @Override
    public View buildConvertView(LayoutInflater layoutInflater, int viewType) {
        return layoutInflater.inflate(R.layout.item_login_log,null);
    }

    @Override
    public void bindViewDatas(ViewHolder holder,  LoginLogBean.DataBean dataBean, int position) {
        holder.setText(R.id.tv_ip,dataBean.getLoginIP());
        holder.setText(R.id.tv_date,dataBean.getLoginTime());

    }


}
